package com.example.demo.entity;

import java.sql.Timestamp;
import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.Objects;

public class Means {
    private Integer did;
    private String dtype;
    private String dtitle;
    private String dreadcount;
    private String dannex;//附件
    private String dname;
    private Timestamp dsdate;

    public Means(Integer did, String dtype, String dtitle, String dreadcount, String dannex, String dname, Timestamp dsdate) {
        this.did = did;
        this.dtype = dtype;
        this.dtitle = dtitle;
        this.dreadcount = dreadcount;
        this.dannex = dannex;
        this.dname = dname;
        this.dsdate = dsdate;
    }

    public Means() {
    }

    public Integer getDid() {
        return did;
    }

    public void setDid(Integer did) {
        this.did = did;
    }

    public String getDtype() {
        return dtype;
    }

    public void setDtype(String dtype) {
        this.dtype = dtype;
    }

    public String getDtitle() {
        return dtitle;
    }

    public void setDtitle(String dtitle) {
        this.dtitle = dtitle;
    }

    public String getDreadcount() {
        return dreadcount;
    }

    public void setDreadcount(String dreadcount) {
        this.dreadcount = dreadcount;
    }

    public String getDannex() {
        return dannex;
    }

    public void setDannex(String dannex) {
        this.dannex = dannex;
    }

    public String getDname() {
        return dname;
    }

    public void setDname(String dname) {
        this.dname = dname;
    }

    public Timestamp getDsdate() {
        return dsdate;
    }

    public void setDsdate(Timestamp dsdate) throws ParseException {
        this.dsdate =dsdate;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        Means means = (Means) o;
        return Objects.equals(did, means.did) && Objects.equals(dtype, means.dtype) && Objects.equals(dtitle, means.dtitle) && Objects.equals(dreadcount, means.dreadcount) && Objects.equals(dannex, means.dannex) && Objects.equals(dname, means.dname) && Objects.equals(dsdate, means.dsdate);
    }

    @Override
    public int hashCode() {
        return Objects.hash(did, dtype, dtitle, dreadcount, dannex, dname, dsdate);
    }

    @Override
    public String toString() {
        return "Means{" +
                "did=" + did +
                ", dtype='" + dtype + '\'' +
                ", dtitle='" + dtitle + '\'' +
                ", dreadcount='" + dreadcount + '\'' +
                ", dannex='" + dannex + '\'' +
                ", dname='" + dname + '\'' +
                ", dsdate=" + dsdate +
                '}';
    }
}
